package com.wuxu.postman_demo.ioc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class IOCController {

    //此时就需要IOC+依赖注入
    @Autowired
    private TestService testService ;//= new TestService();

    @RequestMapping("/ioc")
    public TestResult ioc() {
        return new TestResult(1,"",testService.dealCoreService());
    }
}
